package com.email.util;

import java.sql.SQLException;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class JsonAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	
	private List<FolderBean> list;
	
	public String excute() {
		try {
			list = FolderDao.getInstance().getAllArray(-1, "test");
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
	
	public List<FolderBean> getList() throws SQLException {
		list = FolderDao.getInstance().getAllArray(-1, "test");
		return list;
	}
	
	public void setList(List<FolderBean> list) {
		this.list = list;
	}
}
